<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>系统管理-区域列表</title>
    <jsp:include page="../../include/base.jsp"></jsp:include>
	<jsp:include page="../../include/common.jsp"></jsp:include>
	<jsp:include page="../../include/baseManage.jsp"></jsp:include>
  </head>
  <body> 
  	<div class="mini-toolbar" style="border:0;font-size:12px;padding-left:6px;"> 
        <!-- 操作面板 -->
        <div class="operatePanel">
	       	<input class="mini-button" text="添加配送区域" iconCls="icon-addnew" plain="false" 
	       		onclick="RegionHandler.addRegion" visible="false" id="region_list_add" />
	       	<input class="mini-button" text="编辑配送区域" iconCls="icon-edit" plain="false" 
	       		onclick="RegionHandler.editRegion" visible="false" id="region_list_edit" />
	       	<input class="mini-button" text="删除配送区域" iconCls="icon-remove" plain="false" 
	       		onclick="RegionHandler.delRegion" visible="false" id="region_list_del" />
	       	<input class="mini-button" text="展开查询" iconCls="icon-btn-expand" plain="false" 
	       		onclick="RegionHandler.queryRegion" visible="false" id="region_list_query" />
	       	<input class="mini-button" text="刷新" iconCls="icon-btn-refresh" plain="false" 
	       		onclick="RegionHandler.afresh" visible="false" id="region_list_refresh" />
	    </div>
	    <!-- 查询面板 -->
	    <div id="queryRegionDiv" class="queryPanel">
	    	<label class="queryPanelLbl">区域名称：</label>
	    	<input class="mini-textbox" id="query_bdrName"/>
	    	<input class="mini-button" text="查询" iconCls="icon-btn-search" plain="false" 
	    		onclick="RegionHandler.doQueryRegion"/>
	    </div>
    </div>
    <div class="mini-fit" id="regionPanel">
    	<!-- 懒加载树 -->
    	<div id="regionTreeGrid" class="mini-treegrid" style="width:100%;height:100%;" 
	    	showTreeIcon="false" borderStyle="border-bottom:0;border-left:0;border-right:0;"
	    	idField="bdrId" treeColumn="bdrName" onbeforeload="RegionHandler.onBeforeTreeLoad"
	    	ondrawcell="RegionHandler.onDrawCell">
	        <div property="columns">
	            <div type="indexcolumn" width="40" headerAlign="center">序号</div>
	            <div field="bdrName" name="bdrName" width="100%" headerAlign="center" allowSort="true">区域名称</div>    
	            <div field="bdrType" name="bdrType" width="100" headerAlign="center" allowSort="true">区域类型</div>
	            <div field="bdrAgent" name="bdrAgent" width="0" headerAlign="center" allowSort="true">代理商编号</div>
	            <div field="baiName" name="baiName" width="200" headerAlign="center" allowSort="true">所属代理商</div>
	            <div field="bdrState" name="bdrState" width="100" headerAlign="center" align="center" allowSort="true">区域状态</div>
	        </div>
	    </div>
    </div>
  </body>
  <script src="handler/RegionHandler.js" type="text/javascript"></script>
</html>
